#include "BeatMouse.h"

BeatMouse::BeatMouse(QWidget *parent)
    : QMainWindow(parent)
{
	QDesktopWidget* pDesktop = QApplication::desktop();  //获取桌面大小
	m_screenGeometry = pDesktop->screenGeometry();
	m_width = m_screenGeometry.width();
	m_height = m_screenGeometry.height();
	m_rateHeight = m_height / 1080.0;
	m_rateWidth = m_height / 1920.0;
	this->setGeometry(m_screenGeometry);
	
	setBackground();
	setGameQuit();
	initMouse();
	loadScore();
	beginGame();
}